From: Jason Rumney Date: Thu, 12 Feb 2009 13:58:29 +0000 (+0000) Subject: (add_font_entity_to_list): Fix check for substituted X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~1839 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=abdaa8612778a5f76698694de3c7a195724c1bdc;p=emacs.git (add_font_entity_to_list): Fix check for substituted raster fonts. (Bug#2219) --- diff --git a/src/w32font.c b/src/w32font.c index ac0360c2be4..d28483ada1e 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -1433,8 +1433,8 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam) by a foundry, we accept raster fonts if the font name is found anywhere within the full name. */ if ((logical_font->elfLogFont.lfOutPrecision == OUT_STRING_PRECIS - && strstr (logical_font->elfFullName, - logical_font->elfLogFont.lfFaceName)) + && !strstr (logical_font->elfFullName, + logical_font->elfLogFont.lfFaceName)) /* Check for well known substitutions that mess things up in the presence of Type-1 fonts of the same name. */ || (match_data->pattern.lfFaceName[0]